﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.WMS.Domain.Entities.Product
{
    /// <summary>
    /// 产品类型实体
    /// </summary>
    public class ProductTypeModel
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 父级分类 ID（0 表示一级分类）
        /// </summary>
        public long ParentId { get; set; }

        /// <summary>
        /// 产品类型编码
        /// </summary>
        [MaxLength(100)]
        public string ProductTypeCode { get; set; } = string.Empty;

        /// <summary>
        /// 产品类型名称
        /// </summary>
        [MaxLength(100)]
        public string ProductTypeName { get; set; } = string.Empty;

        /// <summary>
        /// 状态（1: 启用；0: 禁用，根据实际逻辑调整）
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [MaxLength(100)]
        public string CreateBy { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后更新人
        /// </summary>
        [MaxLength(100)]
        public string UpdateBy { get; set; } = string.Empty;

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除标记（0: 未删除；1: 已删除）
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
